package com.kevin.epacms.service.impl;

import com.kevin.epacms.constant.CommonConstant;
import com.kevin.epacms.entity.Grade;
import com.kevin.epacms.mapper.GradeMapper;
import com.kevin.epacms.service.GradeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kevin.epacms.util.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kevin
 * @since 2022-11-10
 */
@Service
public class GradeServiceImpl extends ServiceImpl<GradeMapper, Grade> implements GradeService {

    @Override
    public Result getAllGrade() {
        List<Grade> gradeList = lambdaQuery().list();
        return Result.ok(gradeList);
    }
}
